package siac.com.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the auth_menu database table.
 * 
 */
@Entity
@Table(name="auth_menu")
@NamedQueries({
		@NamedQuery(name = "AuthMenu.findAll", query = "SELECT e FROM AuthMenu e"),
		@NamedQuery(name = "AuthMenu.findById", query = "SELECT e FROM AuthMenu e WHERE e.idMenu = :idTabela"),
		@NamedQuery(name = "AuthMenu.findByOperacao", query = "SELECT e FROM AuthMenu e WHERE e.idOperacao = :operacao"),
		@NamedQuery(name = "AuthMenu.findByOperacaoRef", query = "SELECT e FROM AuthMenu e WHERE e.idOperacaoRef = :operacaoRef") })
public class AuthMenu implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int idMenu;

	private Timestamp dataModific;

    @Temporal( TemporalType.TIMESTAMP)
	private Date dataRegisto;

	private int idOperacao;

	private int idOperacaoRef;

	private int opModific;

	private int opRegisto;

	private int ordem;

    public AuthMenu() {
    }

	public int getIdMenu() {
		return this.idMenu;
	}

	public void setIdMenu(int idMenu) {
		this.idMenu = idMenu;
	}

	public Timestamp getDataModific() {
		return this.dataModific;
	}

	public void setDataModific(Timestamp dataModific) {
		this.dataModific = dataModific;
	}

	public Date getDataRegisto() {
		return this.dataRegisto;
	}

	public void setDataRegisto(Date dataRegisto) {
		this.dataRegisto = dataRegisto;
	}

	public int getIdOperacao() {
		return this.idOperacao;
	}

	public void setIdOperacao(int idOperacao) {
		this.idOperacao = idOperacao;
	}

	public int getIdOperacaoRef() {
		return this.idOperacaoRef;
	}

	public void setIdOperacaoRef(int idOperacaoRef) {
		this.idOperacaoRef = idOperacaoRef;
	}

	public int getOpModific() {
		return this.opModific;
	}

	public void setOpModific(int opModific) {
		this.opModific = opModific;
	}

	public int getOpRegisto() {
		return this.opRegisto;
	}

	public void setOpRegisto(int opRegisto) {
		this.opRegisto = opRegisto;
	}

	public int getOrdem() {
		return this.ordem;
	}

	public void setOrdem(int ordem) {
		this.ordem = ordem;
	}

}